﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.ComponentModel;
using System.ComponentModel.DataAnnotations;
using System.Web.Mvc;

namespace SCS.Core.Models.CollectionFontend
{
    public class PostBlogCollection
    {
        [Required(ErrorMessage = "*")]
        [DisplayName("PostTitle")]
        [StringLength(250)]
        public string PostTitle { get; set; }

        //[Required(ErrorMessage = "Please enter Alias of Category.")]
        [DisplayName("PostAbstract")]
        [StringLength(350)]
        public string PostAbstract { get; set; }

        [DisplayName("PostContent")]
        [StringLength(8000)]
        public string PostContent { get; set; }

        [DisplayName("PostCreat")]
        public DateTime PostCreat { get; set; }

        [DisplayName("PostUser")]
        public int PostUser { get; set; }

        [DisplayName("PostLink")]
        [StringLength(250)]
        public string PostLink { get; set; }

        [DisplayName("PostImage")]
        [StringLength(250)]
        public string PostImage { get; set; }

        [DisplayName("AttachFile")]
        [StringLength(250)]
        public string AttachFile { get; set; }

        [DisplayName("PostStatus")]
        public byte PostStatus { get; set; }

        [DisplayName("ModifyDate")]
        public DateTime ModifyDate { get; set; }

        [DisplayName("PostSource")]
        [StringLength(250)]
        public string PostSource { get; set; }

        [DisplayName("Title")]
        [StringLength(250)]
        public string Title { get; set; }

        [DisplayName("MetaKeyword")]
        [StringLength(250)]
        public string MetaKeyword { get; set; }

        [DisplayName("MetaDesciption")]
        [StringLength(250)]
        public string MetaDesciption { get; set; }

        [DisplayName("PostID")]
        public int PostID { get; set; }

        [Required]
        [Display(Name = "Hãy nhập vào kết quả")]
        public string Captcha { get; set; }
    }
}